<template>
  <div class="box">
    <h4>孙组件标题</h4>
    <p>content11: {{content11}}</p>
    <p>content22.name: {{content22.name}}</p>
    <button @click="updateContent1('++')">更新祖辈的数据</button>
  </div>
</template>

<script>
export default {
  name: 'GrandChild',
  // 声明注入
  inject: ['content11', 'content22', 'updateContent1']
}
</script>

